import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'routes/Routes.dart';
import 'dart:io';

void main() {
  
  runApp(MyApp());
  if (Platform.isAndroid) {
    // SystemUiOverlayStyle dark = SystemUiOverlayStyle(
    //   systemNavigationBarColor: Color(0xFF000000),
    //   systemNavigationBarDividerColor: null,
    //   statusBarColor: null,
    //   systemNavigationBarIconBrightness: Brightness.light,
    //   statusBarIconBrightness: Brightness.dark,
    //   statusBarBrightness: Brightness.light,
    // );
    //SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle.dar);
    SystemUiOverlayStyle systemUiOverlayStyle = SystemUiOverlayStyle(
        // statusBarIconBrightness: Brightness.light,
        statusBarColor: Colors.transparent,
        systemNavigationBarColor: Colors.black);
    SystemChrome.setSystemUIOverlayStyle(systemUiOverlayStyle);
  }
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return MaterialApp(
      initialRoute: '/splash',
      onGenerateRoute: onGenerateRoute,
      debugShowCheckedModeBanner: false,
    );
  }
}
